package zli.abstractfactory;

import zli.abstractfactory.factory.AbstractFactory;
import zli.abstractfactory.factory.impl.AliPayFactory;
import zli.abstractfactory.factory.impl.KuaJingPayFactory;
import zli.abstractfactory.factory.impl.WeiXinPayFactory;
import zli.abstractfactory.factory.impl.YinLianPayFactory;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        AbstractFactory aliFactory = new AliPayFactory();
        aliFactory.createPay().pay();

        AbstractFactory kJFactory = new KuaJingPayFactory();
        kJFactory.createPay().pay();

        AbstractFactory wxFactory = new WeiXinPayFactory();
        wxFactory.createPay().pay();

        AbstractFactory yLFactory = new YinLianPayFactory();
        yLFactory.createPay().pay();
    }
}
